import request from '@/utils/request'

// 标签列表
export function labelList(data) {
  return request({
    url: '/api/label/list',
    method: 'GET',
    params: data
  })
}
// 新增文章
export function articleEdit(data) {
  return request({
    url: '/api/article/edit',
    method: 'POST',
    data
  })
}
// 文章列表
export function articleList(data) {
  return request({
    url: '/api/article/list',
    method: 'GET',
    params: data
  })
}
// 删除文章
export function articleDel(data) {
  return request({
    url: '/api/article/del',
    method: 'DELETE',
    data
  })
}